﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ${project}.${app}.Web.Default.Common.VCode
{
    public class GetVerifyImageAction  : Controller
	{
		public GetVerifyImageAction(System.IO.TextWriter tw):base(tw){}
		public GetVerifyImageAction(string fileName) : base(fileName) {}
		public GetVerifyImageAction(HttpContext context):base(context){}
		public GetVerifyImageAction(Microsoft.Owin.IOwinContext context):base(context){}
		public GetVerifyImageAction(Controller controller):base(controller){}
		//将图片输出到页面上   
		public void GetVerifyImage()
        {
            //将图片输出到页面上   
            NRapid.Lib.VerifyCode verifyCode = new NRapid.Lib.VerifyCode();
            Cookie.vcheck = verifyCode.vcheck;
            ContentType = "image/gif";
            Write(verifyCode.GetGif());
        }
    }
}